package com.four.seckill.dao;

import com.four.seckill.entity.Seckill;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.guli.common.utils.R;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author gs
 * @since 2021-12-22
 */
public interface SeckillMapper extends BaseMapper<Seckill> {

    /**
     * 添加秒杀商品
     * @param seckill
     */
    void addSeckill(@Param("vo") Seckill seckill);

    /**
     * 根据id查询
     * @param id
     * @return
     */
    Seckill getByIds(Integer id);

    Integer updates(@Param("seId")Integer seId, @Param("limitout")Integer limitout);

    Seckill selectId(Integer seId);
}
